package lucene;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;

import com.contexticon.model.Scene;
import com.contexticon.model.Transcript;
import com.contexticon.model.Utterance;
import com.contexticon.parser.OurParser;


public class LuceneTranscriptTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		UtteranceDatabase uDb = new UtteranceDatabase("");
		String[] transcriptPaths = {"/Users/dglodzik/Dropbox/Contexticon (shared)/Transcripts/HIMYM Pilot (full transcript).xml"};
		String[] mediaPaths = {"/Users/dglodzik/Dropbox/Contexticon (shared)/Transcripts/HIMYM Pilot.avi"};
		String[] titles = {"HIMYM Pilot.avi"};		
		
		uDb.indexTranscrirpts(transcriptPaths, mediaPaths, titles);
		
	
		String searchQuery = "walk*";
		Utterance[] uArray = uDb.search(searchQuery);

	}
	
}
